package com.zdx.yswl.ui.bean;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public class HeadImgBean extends BaseBean{

	private static final long serialVersionUID = -3206541150805313768L;

	public String url;//路径
	public String label;// 标签
	
	
	public static List<HeadImgBean> getListBean4JSON(JSONArray jsonArr) throws JSONException{
		List<HeadImgBean> list = new ArrayList<HeadImgBean>();
		int lenth = jsonArr.length();
		for (int i = 0; i < lenth; i++) {
			HeadImgBean img = new HeadImgBean();
			JSONObject jsonObj = jsonArr.getJSONObject(i);
			img.url = jsonObj.getString("url");
			img.label = jsonObj.getString("label");
			list.add(img);
		}
		
		return list;
		
	}
}
